// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_SALES_CONTRACT_DETAIL_NEW
// * CreateDate    : 2012/2/13 13:47:11
// * Creater       : CodeSmith
// * LastChangeDate: 2012/2/13 13:47:11
// * LastChanger   : 2012/2/13 13:47:11
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class SalesContractDetailNewTable : TableInfo
    {
		public const string C_TableName = "SALES_CONTRACT_DETAIL_NEW";
		
		public const string C_ORDER_ID = "ORDER_ID";
		public const string C_TOTAL_AMOUNT = "TOTAL_AMOUNT";
		public const string C_CONTRACT_ITEM2 = "CONTRACT_ITEM2";
		public const string C_CONTRACT_ITEM3 = "CONTRACT_ITEM3";
		public const string C_CONTRACT_ITEM4 = "CONTRACT_ITEM4";
		public const string C_CONTRACT_ITEM5 = "CONTRACT_ITEM5";
		public const string C_CONTRACT_ITEM6 = "CONTRACT_ITEM6";
		public const string C_CONTRACT_ITEM7 = "CONTRACT_ITEM7";
		public const string C_CONTRACT_ITEM8 = "CONTRACT_ITEM8";
		public const string C_CONTRACT_ITEM9 = "CONTRACT_ITEM9";
		public const string C_CONTRACT_ITEM10 = "CONTRACT_ITEM10";
		public const string C_CONTRACT_ITEM11 = "CONTRACT_ITEM11";
		public const string C_CONTRACT_ITEM12 = "CONTRACT_ITEM12";
		public const string C_CONTRACT_ITEM_OTHER1 = "CONTRACT_ITEM_OTHER1";
		public const string C_CONTRACT_ITEM_OTHER2 = "CONTRACT_ITEM_OTHER2";
		public const string C_CONTRACT_ITEM_OTHER3 = "CONTRACT_ITEM_OTHER3";
		public const string C_CONTRACT_ITEM_OTHER4 = "CONTRACT_ITEM_OTHER4";
        public const string C_CONTRACT_ITEM_OTHER5 = "CONTRACT_ITEM_OTHER5";
        public const string C_CONTRACT_FROM_DATE = "CONTRACT_FROM_DATE";
        public const string C_CONTRACT_END_DATE = "CONTRACT_END_DATE";
		
		public SalesContractDetailNewTable()
        {
            _tableName = "SALES_CONTRACT_DETAIL_NEW";
        }
		
		protected static SalesContractDetailNewTable _current;
        public static SalesContractDetailNewTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new SalesContractDetailNewTable();

            _current.Add(C_ORDER_ID, new ColumnInfo(C_ORDER_ID,"OrderId", true, typeof(string)));
            _current.Add(C_TOTAL_AMOUNT, new ColumnInfo(C_TOTAL_AMOUNT,"TotalAmount", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM2, new ColumnInfo(C_CONTRACT_ITEM2,"ContractItem2", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM3, new ColumnInfo(C_CONTRACT_ITEM3,"ContractItem3", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM4, new ColumnInfo(C_CONTRACT_ITEM4,"ContractItem4", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM5, new ColumnInfo(C_CONTRACT_ITEM5,"ContractItem5", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM6, new ColumnInfo(C_CONTRACT_ITEM6,"ContractItem6", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM7, new ColumnInfo(C_CONTRACT_ITEM7,"ContractItem7", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM8, new ColumnInfo(C_CONTRACT_ITEM8,"ContractItem8", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM9, new ColumnInfo(C_CONTRACT_ITEM9,"ContractItem9", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM10, new ColumnInfo(C_CONTRACT_ITEM10,"ContractItem10", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM11, new ColumnInfo(C_CONTRACT_ITEM11,"ContractItem11", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM12, new ColumnInfo(C_CONTRACT_ITEM12,"ContractItem12", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM_OTHER1, new ColumnInfo(C_CONTRACT_ITEM_OTHER1,"ContractItemOther1", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM_OTHER2, new ColumnInfo(C_CONTRACT_ITEM_OTHER2,"ContractItemOther2", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM_OTHER3, new ColumnInfo(C_CONTRACT_ITEM_OTHER3,"ContractItemOther3", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM_OTHER4, new ColumnInfo(C_CONTRACT_ITEM_OTHER4,"ContractItemOther4", false, typeof(string)));
            _current.Add(C_CONTRACT_ITEM_OTHER5, new ColumnInfo(C_CONTRACT_ITEM_OTHER5, "ContractItemOther5", false, typeof(string)));
            _current.Add(C_CONTRACT_FROM_DATE, new ColumnInfo(C_CONTRACT_FROM_DATE, "ContractFromDate", false, typeof(DateTime)));
            _current.Add(C_CONTRACT_END_DATE, new ColumnInfo(C_CONTRACT_END_DATE, "ContractEndDate", false, typeof(DateTime)));
			
		}
		
		public ColumnInfo ORDER_ID
        {
            get { return this[C_ORDER_ID]; }
        }
		
		public ColumnInfo TOTAL_AMOUNT
        {
            get { return this[C_TOTAL_AMOUNT]; }
        }
		
		public ColumnInfo CONTRACT_ITEM2
        {
            get { return this[C_CONTRACT_ITEM2]; }
        }
		
		public ColumnInfo CONTRACT_ITEM3
        {
            get { return this[C_CONTRACT_ITEM3]; }
        }
		
		public ColumnInfo CONTRACT_ITEM4
        {
            get { return this[C_CONTRACT_ITEM4]; }
        }
		
		public ColumnInfo CONTRACT_ITEM5
        {
            get { return this[C_CONTRACT_ITEM5]; }
        }
		
		public ColumnInfo CONTRACT_ITEM6
        {
            get { return this[C_CONTRACT_ITEM6]; }
        }
		
		public ColumnInfo CONTRACT_ITEM7
        {
            get { return this[C_CONTRACT_ITEM7]; }
        }
		
		public ColumnInfo CONTRACT_ITEM8
        {
            get { return this[C_CONTRACT_ITEM8]; }
        }
		
		public ColumnInfo CONTRACT_ITEM9
        {
            get { return this[C_CONTRACT_ITEM9]; }
        }
		
		public ColumnInfo CONTRACT_ITEM10
        {
            get { return this[C_CONTRACT_ITEM10]; }
        }
		
		public ColumnInfo CONTRACT_ITEM11
        {
            get { return this[C_CONTRACT_ITEM11]; }
        }
		
		public ColumnInfo CONTRACT_ITEM12
        {
            get { return this[C_CONTRACT_ITEM12]; }
        }
		
		public ColumnInfo CONTRACT_ITEM_OTHER1
        {
            get { return this[C_CONTRACT_ITEM_OTHER1]; }
        }
		
		public ColumnInfo CONTRACT_ITEM_OTHER2
        {
            get { return this[C_CONTRACT_ITEM_OTHER2]; }
        }
		
		public ColumnInfo CONTRACT_ITEM_OTHER3
        {
            get { return this[C_CONTRACT_ITEM_OTHER3]; }
        }
		
		public ColumnInfo CONTRACT_ITEM_OTHER4
        {
            get { return this[C_CONTRACT_ITEM_OTHER4]; }
        }
		
		public ColumnInfo CONTRACT_ITEM_OTHER5
        {
            get { return this[C_CONTRACT_ITEM_OTHER5]; }
        }

        public ColumnInfo CONTRACT_FROM_DATE
        {
            get { return this[C_CONTRACT_FROM_DATE]; }
        }

        public ColumnInfo CONTRACT_END_DATE
        {
            get { return this[C_CONTRACT_END_DATE]; }
        }
		
	}
}

